from redis import StrictRedis


class RedisConfig:
    def __init__(self):
        self.host = "localhost"
        self.port = "6379"
        self.db = '2'
        self.client = StrictRedis(host=self.host, port=self.port, db=self.db)

    def get_redis_client(self):
        return self.client

    def close_redis_client(self):
        self.client.close()
